package pod

import (
	"kubernate-server/service"

	"github.com/gin-gonic/gin"
)

/**
 * Author: ycliud
 * Description: pod路由
 * Date:20250927
 */
type K8sPodRouter struct {
}

func (*K8sPodRouter) InitK8SPodRouter(r *gin.Engine) {
	group := r.Group("/pod")
	group.GET("/:namespace/:podname", service.ApiGroupApp.GetPodDetail)
	group.GET("/:namespace", service.ApiGroupApp.GetPodList)
	group.DELETE("/delPod/:namespace/:podname", service.ApiGroupApp.DeletePod)
	group.POST("/createPod", service.ApiGroupApp.CreatePod)
	group.POST("/updatePod", service.ApiGroupApp.UpdatePod)
}
